package com.xidian.zhiancloud.service.checkdanger;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.xidian.zhiancloud.dao.checkdanger.BaseSetMapper;
import com.xidian.zhiancloud.dao.checkdanger.ChkOrderMapper;
import com.xidian.zhiancloud.qo.BaseReqQuery;

@Service
public class ChkOrderService {

	@Autowired
	ChkOrderMapper chkorderMapper;
	
	public Page<Map<String,String>> getChkOrderList(BaseReqQuery reqdata,String key){
		PageHelper.startPage(reqdata.getPageNum(), reqdata.getPageSize());
		Page<Map<String,String>> pagedata =chkorderMapper.getChkOrderList(key);
		
		return pagedata;
	}
	
	public int insertChkOrderType(Integer id,Integer type,String typeids)
	{
		return chkorderMapper.insertChkOrderType(id,type,typeids);
	}
	
	public int updateChkOrderType(Integer id,Integer type,String typeids)
	{
		return chkorderMapper.updateChkOrderType(id,type,typeids);
	}
	
	public Map<String,String> getChkOrder3Detail(Integer id){
		return chkorderMapper.getChkOrder3Detail(id);
	}
	
	public List<Map<String,String>> getChkOrder3Detailist(Integer id){
		
		return chkorderMapper.getChkOrder3Detailist(id);
	}
	
}
